home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
pluginy Firefox
/
63142
/
63142.xpi
/
older
/
tkp36.xpi
/
chrome
/
content
/
overlay.js
< prev
next >
Wrap
Text File
|
2010-01-24
|
2KB
|
41 lines
var ketkpin = {
onLoad: function() {
// initialization code
this.initialized = true;
this.strings = document.getElementById("ketkpin-strings");
},
onMenuItemCommand: function(e) {
var my_url=window.content.location.href;
//alert(my_url);
window.content.location.href="http://ketkp.in/index-exp.php?url="+escape(my_url);
// window.location="http://ketkp.in/index-exp.php?url="+escape(myurl);
},
onMenuItemCommand2: function(e) {
var my_url=window.content.location.href;
var my_custom=prompt("Masukkan Nama TKP yang di inginkan (contoh: url_imut69)");
//alert(my_custom);
window.content.location.href="http://ketkp.in/index-exp.php?url="+escape(my_url)+"&custom_name="+escape(my_custom);
// window.location="http://ketkp.in/index-exp.php?url="+escape(myurl);
},
onMenuItemCommand3: function(e) {
var my_url=gContextMenu.getLinkURL();
window.content.location.href="http://ketkp.in/index-exp.php?url="+escape(my_url);
},
onMenuItemCommand4: function(e) {
var my_url=gContextMenu.getLinkURL();
var my_custom=prompt("Masukkan Nama TKP yang di inginkan (contoh: url_imut69)");
//alert(my_custom);
window.content.location.href="http://ketkp.in/index-exp.php?url="+escape(my_url)+"&custom_name="+escape(my_custom);
// window.location="http://ketkp.in/index-exp.php?url="+escape(myurl);
},
onToolbarButtonCommand: function(e) {
// just reuse the function above. you can change this, obviously!
ketkpin.onMenuItemCommand(e);
}
};
window.addEventListener("load", ketkpin.onLoad, false);